window.onload = function () {

}

//login 传递登录信息表单
function login() {
    $.post("/login", {
        UserLoginId: $("#no").val(),
        password: $("#password").val(),
    }, function (res, status) {
        if (status != "success") {
            console.log("未知错误");
            return;
        }
        console.log(res);
        //判断，并进行相关操作
        if (res.code === "loginFailed") {
            alert("登录失败");
        } else if (res.code === "loginOK") {
            alert("登录成功，确认后跳转!--->");
            window.location="./operateCenter";
        }
    })
}
